#pragma once 

#define SIZE 1024

#define FFLUSH_NONE 0
#define FFLUSH_LINE 0
#define FFLUSH_FULL 0

struct IO_FILE
{
    int flag; // 刷新方式
    int fileno; // 文件描述符
    char outbuffer[SIZE];
    int cap;
    int size;
    // TODO
};

typedef struct IO_FILE mFILE;

mFILE *mfopen(const char *filename, const char *mode);
//int mfwrite(const void *ptr, int num, mFILE *stream);
//void mfflush(mFILE *stream);
//void mfclose(mFILE *stream);
